#include "Render.h"


Render::Render(QWidget *parent)
	: QGLWidget(parent),
	error(false),
	screenWidth(0), screenHeight(0)
{
}


Render::~Render(void)
{
}

void Render::initializeGL()
{

}

void Render::resizeGL(int w, int h)
{
	if (error) return;

	screenWidth = w <= 0 ? 1 : w;
	screenHeight = h <= 0 ? 1 : h;
}

void Render::paintGL()
{
	if (error) return;

}

void Render::mousePressEvent(QMouseEvent *event)
{

}

void Render::mouseMoveEvent(QMouseEvent *event)
{

}

void Render::mouseReleaseEvent(QMouseEvent *event)
{

}

void Render::wheelEvent(QWheelEvent *event)
{

}

void Render::keyPressEvent(QKeyEvent *event)
{

}